package com.zpark.transaction.service.feign;

import com.shanjupay.paymentagent.api.conf.AliConfigParam;
import com.shanjupay.paymentagent.api.dto.AlipayBean;
import com.shanjupay.paymentagent.api.dto.PaymentResponseDTO;
import com.zpark.jushanpay.common.domain.RestResponse;
import com.zpark.transaction.service.feign.impl.PayChannelAgentControllerFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 支付代理渠道服务工程接口
 */
@FeignClient(name = "${payAgent.serv-name}",
    fallback = PayChannelAgentControllerFeignImpl.class)
public interface IPayChannelAgentControllerFeign {

    /**
     * 调用支付宝手机WAP下单接口
     * @param configParam
     * @param bean
     * @return
     */
    @RequestMapping("${payAgent.partten-url}/ali_wap")
    RestResponse<PaymentResponseDTO> createPayOrderByAliWAP(
            @RequestParam("paramStr") String paramStr, @RequestBody AlipayBean bean);
}
